<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script src="<%=request.getContextPath() %>/static/pages/js/sysToken.js?v=3.1415926" type="text/javascript"></script>

<form id="sysTokenForm" action="" class="form-horizontal" method="post">
	<input id="sysTokenId" name="id" type="hidden" value="${sysToken.id}" />

	<div class="modal-header">
	    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	    <h4 class="modal-title">修改sys_token信息</h4>
	</div>
	<div class="modal-body">
	    <div class="row">
	        <div class="col-md-12">
							
                    <div class="form-body">
	                        <div class="form-group">
								<label class="col-md-3 control-label"><span class="required" aria-required="true"> * </span>令牌</label>
								<div class="col-md-4">
	                                   <div id="input-error">
	                                       <input id="token" name="token" type="text" class="form-control" value="${sysToken.token}" readonly="readonly">
	                                   </div>
								</div>
							</div>
	                        <div class="form-group">
								<label class="col-md-3 control-label"><span class="required  datepicker" value="" data-date-format="yyyy-mm-dd" aria-required="true"> * </span>开始时间</label>
								<div class="col-md-4">
	                                   <div id="input-error">
	                                       <input id="startTime" name="startTime" type="text" class="form-control datepicker" data-date-format="yyyy-mm-dd"  value="<fmt:formatDate value="${sysToken.startTime}" pattern='yyyy-MM-dd'/>">
	                                   </div>
								</div>
							</div>
	                        <div class="form-group">
								<label class="col-md-3 control-label"><span class="required  datepicker" value="" data-date-format="yyyy-mm-dd" aria-required="true"> * </span>结束时间</label>
								<div class="col-md-4">
	                                   <div id="input-error">
	                                       <input id="endTime" name="endTime" type="text" class="form-control datepicker" data-date-format="yyyy-mm-dd" value="<fmt:formatDate value="${sysToken.endTime}" pattern='yyyy-MM-dd'/>">
	                                   </div>
								</div>
							</div>
	                        <div class="form-group">
								<label class="col-md-3 control-label"><span class="required" aria-required="true"> * </span>失效；启用</label>
								<div class="col-md-4">
	                                   <div id="input-error">
	                                       <select id="status" name="status" type="text" class="form-control">
											   <option value="0" <c:if test="${sysToken.status == 0}" >selected</c:if>>失效</option>
											   <option value="1" <c:if test="${sysToken.status == 1}" >selected</c:if>>启用</option>
										   </select>
	                                   </div>
								</div>
							</div>
	                        <div class="form-group">
								<label class="col-md-3 control-label"><span class="required" aria-required="true"> * </span>创建时间</label>
								<div class="col-md-4">
	                                   <div id="input-error">
	                                       <input id="createTime" name="createTime" type="text" class="form-control" value="<fmt:formatDate value="${sysToken.createTime}" pattern='yyyy-MM-dd HH:mm:ss'/>" readonly="readonly">
	                                   </div>
								</div>
							</div>
					</div>
                                                       
				
	        </div>
	    </div>
	</div>
	<div class="modal-footer">
	    <button type="button" class="btn default" data-dismiss="modal">关  闭</button>
	    <button type="submit" class="btn blue">保  存</button>
	</div>

</form>